import service from "./request"

//选修课程
export function selectGetPage(params) {
    return service({
        url: 'student/course/select/page/1',
        method: 'get',
        params: params
    })
}

//选择
export function selectConfirm(id) {
    return service({
        url: '/student/course/select/' + id,
        method: 'post',
    })
}

//课程列表  成绩查询
export function courseList() {
    return service({
        url: '/student/course/list',
        method: 'get'
    })
}


//退选
export function withdrawCourse(id) {
    return service({
        url: '/student/course/' + id,
        method: 'delete',
    })
}


//课表查询
export function timeTable(id) {
    return service({
        url: '/student/timetable',
        method: 'get'
    })
}


//个人信息
export function studentInfo(id) {
    return service({
        url: '/student/info',
        method: 'get'
    })
}

//更新个人信息
export function putInfo(data) {
    return service({
        url: '/student/info',
        method: 'put',
        data: data
    })
}